package com.xai.pg.data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author xxx
 * @Date 2018-12-24 14:12:14
 * @Desc DBInfo
 *
 */
public class DBInfo {

    private List<DBTable> tables = new ArrayList<>();

    public List<DBTable> getTables() {
        return tables;
    }

    public void addTables(DBTable table) {
        this.tables.add(table);
    }

    public void generatorTableSQL() {
        tables.stream().forEach(table -> {
            table.generatorSQL();
        });
    }
}
